<!doctype html>
<html lang="en" translate="no">

<head>
  <meta charset="UTF-8" />
  <link rel="icon" type="image/svg+xml" href="/favicon.ico" />
  <meta name="viewport"
    content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover" />

  <!--ios和Android都支持-->
  <meta name="apple-mobile-web-app-capable" content="yes" />
  <!--仅Android支持-->
  <meta name="mobile-web-app-capable" content="yes" />
  <meta name="apple-mobile-web-app-status-bar-style" content="#2D1A5C" />
  <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
  <meta name="theme-color" content="#2D1A5C" />
  <link rel="manifest" href="/manifest.json">
  <title>PKBET</title>
  <script src="https://cdn.jsdelivr.net/npm/svgaplayerweb@2.3.1/build/svga.min.js"></script>
  <script>
    const url = new URL(window.location.href);
    const token = url.searchParams.get('token');
    const userId = url.searchParams.get('user_id');
    if (token) {
      localStorage.setItem('user', `{"token":"${token}","user_id": "${userId}"}`)
    }


  </script>
  <script
    src="https://lf1-cdn-tos.bytegoofy.com/obj/iconpark/icons_36126_108.1b6d64129d334ec1980d8186cb5d97ec.js"></script>
  <style>
    /* html, */
    body {
      font-size: 14px;
      font-family: SourceHanSansSC;
      color: #8e82c2;
      margin: 0;
      padding: 0;
      width: 100%;
      /* border: 2px solid red; */
      margin: 0;
      padding: 0;
      overflow: hidden;
      /* 禁用滚动 */
      height: var(--app-height, 100%);
      overscroll-behavior: none;
      /* 禁用弹性滚动 */
      -webkit-overflow-scrolling: touch;
      background-color: #2D1A5C;
      /* 测试背景色 */
    }

    ::-webkit-scrollbar {
      display: none;
    }

    #loadingCanvas {
      width: 100vw;
      height: 100vh;
      background-image: url('/imgs/home/public_bg.webp');
      background-size: 80%;
    }
  </style>
</head>

<body>
  <div id="loadingCanvas"></div>
  <div id="app"></div>
  <script>
    var player = new SVGA.Player('#loadingCanvas');
    var parser = new SVGA.Parser('#loadingCanvas'); // 如果你需要支持 IE6+，那么必须把同样的选择器传给 Parser。
    parser.load('/svga/loading.svga', function (videoItem) {
      player.setVideoItem(videoItem);
      player.startAnimation();
    })
  </script>
  <script type="module" src="/src/main.ts"></script>
</body>


</html>